package com.king.study.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class KingController {

    @RequestMapping("/king")
    public void didi(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("dsd","dsds");
        //modelAndView.setViewName("ddsd");
        System.out.println("Hello World");
        System.out.println("dsds");
        //return "ddsd";
    }
}
